package com.example.demooo.controller;

import com.example.demooo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//Rest模式
@RestController
public class BookController {

    @Autowired
    private User user;

    @GetMapping("book")
    public String create(){
        System.out.println("springboot is running...1");
        return "springboot is running...2"+user.toString();
    }
}
